using FreeSql.DataAnnotations;
using Newtonsoft.Json;

namespace ProjectManageSystemApi.DbEntity
{

    /// <summary>
    /// 工程用户关系表,每个工程可以分配多个用户.
    /// </summary>
    [JsonObject(MemberSerialization.OptIn), Table(Name = "project_user_info", DisableSyncStructure = true)]
	public partial class ProjectUserInfo {

		[JsonProperty, Column(Name = "id", IsPrimary = true, IsIdentity = true)]
		public int Id { get; set; }

		/// <summary>
		/// 项目Id
		/// </summary>
		[JsonProperty, Column(Name = "project_id")]
		public int ProjectId { get; set; }

		/// <summary>
		/// 用户id
		/// </summary>
		[JsonProperty, Column(Name = "user_id")]
		public long UserId { get; set; }

		/// <summary>
		/// 创建时间
		/// </summary>
		[JsonProperty, Column(Name = "create_time")]
		public long CreateTime { get; set; }

		/// <summary>
		/// 创建时间
		/// </summary>
		[JsonProperty, Column(Name = "create_user", StringLength = 20)]
		public long CreateUser { get; set; }

		/// <summary>
		/// 状态值 0: 存在 100: 删除
		/// </summary>
		[JsonProperty, Column(Name = "status")]
		public byte Status { get; set; }

		[Navigate(nameof(UserId))]
		public UserInfo User { get; set; }

	}

}
